package com.my.jli.dao;

import com.my.jli.entity.HomeworkAndStudent;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @ClassName HomeWorkAndStudentRepository
 * @Description
 * @Author MaYu
 * @Date 2022/4/7 19:54
 * @Version 1.0
 **/
public interface HomeWorkAndStudentRepository extends JpaRepository<HomeworkAndStudent, Integer> {
    int countByHid(Integer hid);
    HomeworkAndStudent findByHidAndSid(Integer hid, Integer sid);
    List<HomeworkAndStudent> findByHid(Integer hid);
}
